import request from '@/utils/request';

// 出勤率接口
export function getCqlfx(params) {
    return request('/api/oa/v1/attendancecount/trunoutrate/getone', {
        method: 'POST',
        data: params
    });
}

// 出勤率排行
export function getCqlph(params) {
    return request('/api/oa/v1/attendancecount/trunoutsweat/getlist', {
        method: 'POST',
        data: params
    });
}

// 请假类型分析
export function getQjlxfx(params) {
    return request('/api/oa/v1/attendancecount/leavetyperate/getone', {
        method: 'POST',
        data: params
    });
}

// 请假类型排行
export function getQjryph(params) {
    return request('/api/oa/v1/attendancecount/leavetypesweat/getlist', {
        method: 'POST',
        data: params
    });
}

// 加班类型分析
export function getJblxfx(params) {
    return request('/api/oa/v1/attendancecount/overtimetyperate/getone', {
        method: 'POST',
        data: params
    });
}

// 加班人员排行
export function getJbyrph(params) {
    return request('/api/oa/v1/attendancecount/overtimesweatlist/getlist', {
        method: 'POST',
        data: params
    });
}

// 异常率分析
export function getYcfx(params) {
    return request('/api/oa/v1/attendancecount/abnormaltyperate/getone', {
        data: params,
        method: 'POST'
    });
}

// 异常率排行
export function getYcph(params) {
    return request('/api/oa/v1/attendancecount/abnormaltypesweat/getlist', {
        method: 'POST',
        data: params
    });
}
